import { formatTime } from '../../utils/util'
let listLoad = require('../../common/mixinList')
Page({
    behaviors: [listLoad],
    data: {
        reqUrl: '/supplier/order/pei',
        tomorrow: '',
    },
    onLoad: function(options) {
        let time = new Date().getTime() + 24 * 60 * 60 * 1000
        let tomorrow = formatTime(new Date(time)).slice(0, 10).replaceAll('-', '')
        this.setData({ tomorrow })
        this.getList(true)
    },
    getParamsData() { //页面特殊的请求参数，需要时在页面内覆盖此方法，默认返回{}
        return { day: this.data.tomorrow }
    }
})